Readers which support Tag Locationing feature report the same in the field IsTagLocationingSupported of ReaderCaps as true. This feature is supported only on Handheld readers and is useful to locate a specific tag in the field of view of the readers antenna. The default locationing algorithm supported on the reader can perform locationing only on a single antenna. rfid3.Actions.TagLocationing.Perform can be used to start locating a tag, and rfid3.Actions.TagLocationing.Stop to stop the locationing operation. Result of locationing of a tag is reported as LocationInfo in TagData and will be present in TagData if tagData.ContainsLocationInfo is true. tagData.LocationInfo.RelativeDistance gives the relative distance of the Tag from the Reader Antenna.
try
{
rfid3.Actions.TagLocationing.Perform(tagInField,antennaInfo);
Thread.Sleep(1000);
rfid3.Actions.TagLocationing.Stop();
TagData[] tagData = rfid3.Actions.GetReadTags(1000);
if (tagData != null)
{
for (int nIndex1 = 0; nIndex1 <
tagData.Length; nIndex1++)
{
if(tagData[nIndex1].ContainsLocationInfo)
{
Console.WriteLine(Relative
Distance:+
tagData[nindex1].LocationInfo.RelativeDistance.ToString());
}
}
}
}
catch
(OperationFailureException ofe)
{
Console.WriteLine(ofe.ToString())
}